<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html">
<h:head>
     <title>Editer une cuisine</title>
     <link href="../resources/css/style.css" rel="stylesheet" type="text/css" media="screen" />
</h:head>
 <h:body>
    <header>
       <div class="container"><a href="../resources/login.faces" class="login">Login</a>
          <nav>
             <ul>
                <li><a href="../default.htm" class="active"><span><span>Accueil</span></span></a></li>
                <li><a href="../resources/listRestaurants.faces"><span><span>Restaurants A-Z</span></span></a></li>
             </ul>
          </nav>
          <h1><a href="../default.htm">Restaurant review</a></h1>
          <div class="slogan"></div>
       </div>
    </header>
    <ul>
        <li><h:outputText value="Bienvenue #{securityController.connectedUserid}"/></li>
        <li><h:form><h:commandLink action="#{securityController.logout}" value="Se d&eacute;connecter"/></h:form></li>
    </ul>
    <hr/>
    <h1>Editer une cuisine</h1>
    <hr/>
    <h:form>
        <table border="0">
            <tr>
                <td><h:outputLabel value="Nom : "/></td>
                <td><h:inputText value="#{cuisineController.cuisine.title}"/>
                </td>
            </tr>
            <tr>
                <td><h:outputLabel value="Region : "/></td>
                <td><h:inputText value="#{cuisineController.cuisine.region}"/>
                </td>
            </tr>
            <tr>
                <td><h:outputLabel value="Type :"/></td>
                <td><h:inputText value="#{cuisineController.cuisine.type}"/></td>
            </tr>
            <tr>
                <td><h:outputLabel value="Description  : "/></td>
                <td><h:inputTextarea value="#{cuisineController.cuisine.description}" cols="20" rows="5"/></td>
            </tr>
            <tr>
                <td><h:outputLabel value="Image (url) : "/></td>
                <td><h:inputText value="#{cuisineController.cuisine.img}"/></td>
            </tr>
        </table>

        <h:commandButton value="Sauver" action="#{cuisineController.doSave}"/>

    </h:form>

    <h:form>
            <h:commandButton value="Cancel" action="../resources/listCuisines.faces"/>
        </h:form>
    <hr/>

</h:body>
</html>